﻿using B.S.GridManger.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.GridManager.Infrastructure.Interface
{
    /// <summary>
    /// 仓储接口
    /// </summary>
    /// <typeparam name="T">T是实体类</typeparam>
    public interface IBaseRepository<T> where T:BaseEntity
    {
        //添加  
        public int Create(T t);
        //更新
        public int Update(T t);
        //查询单个实体
        public T GetModel(long id);
        //查询实体列表
        public IQueryable<T> GetAll();
    }
}
